package com.yunsoft.util;


public class SortUtil {

	
	
	public static void main(String[] args) {
		int a[]={1,3,5,3,2,3,33,64,61,34,56};
		
		int sorr[] = BullteSort(a,a.length);
		for(int i=0;i<sorr.length;i++){
			System.out.print(sorr[i]);
		}
	}
	
	public static int[] BullteSort(int a[] ,int n){
		
		for(int i=0;i<n-1;i++){
			for(int j=0;j<n-i-1;j++){
				if(a[j]>a[j+1]){
					int temp = a[j];
					a[j]= a[j+1];
					a[j+1]=temp;
				}
			}
		}
		return a;
	}
	
}
